<?php

namespace app\api\validate;

use think\Validate;

class WithdrawalOrder extends Validate
{
    //字段规则
    protected $rule = [
        'withdrawal_password' =>'require',
        'amount_money' => 'require',
        'source' => 'require',
        'app_base_id' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'amount_money.require' => '提现金额不能为空',
        'source.require' => '来源不能为空',
        'app_base_id.require' => '应用id不能为空',
        'withdrawal_password.require' => '提现密码不能为空',
    ];

    //使用场景
    protected $scene = [
        'createRepaymentOrder'   => ['source','app_base_id','amount_money','withdrawal_password'],
    ];
}